/**
 * 业务类型管道
 */
import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
    name: 'businessType'
})
export class BusinessTypePipe implements PipeTransform {
    transform(type: number): string {
        let types = {
            1: 'tmall',
            2: 'jd'
        };

        return types[type];
    }
}